package com.zhixiang.xaec.dao.system.impl;


import java.util.List;

import org.springframework.stereotype.Repository;

import com.zhixiang.core.dao.impl.BaseDaoImpl;
import com.zhixiang.xaec.dao.system.ForderDao;
import com.zhixiang.xaec.entity.system.Forder;


@Repository
public class ForderDaoImpl extends BaseDaoImpl<Forder, Long> implements ForderDao
{

    public List<Forder> findByParentId(Long id){
        Object[] arrayOfObject = { id };
        return findByHql("FROM Forder d WHERE d.parentId=?", arrayOfObject);
    }
}
